home *** CD-ROM | disk | FTP | other *** search
- gControlsWidth = 300;
- gPreviewWidth = 270;
- gPreviewHeight = 400;
-
- gMaxLabelWidth = max( zstring_width(zstring: '$$$/Dialogs/Background/VertAlign'),
- zstring_width(zstring: '$$$/Dialogs/Background/HorizAlign'),
- zstring_width(zstring: '$$$/Dialogs/Background/Rotation'),
- zstring_width(zstring: '$$$/Dialogs/Background/Opacity')
- );
-
- dialog(name: '$$$/Dialogs/Background', target_id: 'cncl') {
- view (align_children: align_left) {
- view (align_children: align_top) {
- view (width: gControlsWidth, align_children: align_fill) {
- cluster(name: '$$$/Dialogs/Background/TypeCluster') {
- view(align_children: align_left) {
- radio( group_id: 'rgrp', name: '$$$/Dialogs/Background/AddBackground', item_id: 'rad3');
- radio( group_id: 'rgrp', name: '$$$/Dialogs/Background/AddWatermark', item_id: 'rad4');
- view (align_children: align_row) {
- check_box( name: '$$$/Dialogs/Background/OnScreen',
- item_id: 'scrn');
- check_box( name: '$$$/Dialogs/Background/OnPrint',
- item_id: 'prnt');
- }
- }
- }
- cluster(name: '$$$/Dialogs/Background/SourceCluster') {
- view(align_children: align_left) {
- view(align_children: align_row) {
- static_text( item_id: 'srce',
- width: max_char_width()*16);
- button( name: '$$$/Dialogs/Background/ChooseFile',
- item_id: 'chse');
- }
- view(align_children: align_row) {
- static_text(name: '$$$/Dialogs/Background/ChoosePage');
- edit_text( numeric: true,
- SpinEdit: true,
- item_id: 'page',
- width: max_char_width()*4);
- }
- }
- }
-
- cluster(name: '$$$/Dialogs/Background/TargetCluster') {
- view() {
- radio( group_id: 'rgr2',
- name: '$$$/Dialogs/Background/AllPagesLabel',
- item_id: 'rad1');
- view(align_children: align_row) {
- radio( group_id: 'rgr2',
- name: '$$$/Dialogs/Background/PageRangeLabel',
- item_id: 'rad2');
- static_text(name: '$$$/Dialogs/Background/From');
- edit_text( item_id: 'from',
- numeric: true,
- SpinEdit: true,
- width: max_char_width()*3);
- static_text(name: '$$$/Dialogs/Background/To');
- edit_text( item_id: 'topg',
- numeric: true,
- SpinEdit: true,
- width: max_char_width()*3);
- }
- }
- }
-
- cluster(name: '$$$/Dialogs/Background/LayoutCluster') {
- view() {
- view(align_children: align_row) {
- view(width: gMaxLabelWidth, align_children: align_right) {
- static_text(name: '$$$/Dialogs/Background/VertAlign');
- }
- popup( item_id: 'vert',
- width: max_char_width()*6);
- }
- view(align_children: align_row) {
- view(width: gMaxLabelWidth, align_children: align_right) {
- static_text(name: '$$$/Dialogs/Background/HorizAlign');
- }
- popup( item_id: 'horz',
- width: max_char_width()*6);
- }
- view(align_children: align_row) {
- view(width: gMaxLabelWidth, align_children: align_right) {
- static_text(name: '$$$/Dialogs/Background/Rotation');
- }
- edit_text( item_id: 'rotn',
- numeric: true,
- SpinEdit: true,
- width: max_char_width()*3);
- }
- view(align_children: align_row) {
- view(width: gMaxLabelWidth, align_children: align_right) {
- static_text(name: '$$$/Dialogs/Background/Opacity');
- }
- slider( item_id: 'opsl',
- width: max_char_width()*10,
- alignment: align_fill);
- edit_text( item_id: 'opct',
- numeric: true,
- SpinEdit: true,
- width: max_char_width()*4);
- }
-
- }
- }
- }
-
- cluster(name: '$$$/Dialogs/Background/Preview',
- alignment: align_row)
- {
- user_item( item_id: 'prev',
- width: gPreviewWidth,
- height: gPreviewHeight);
- }
- }
-
- ok_cancel_help();
- }
- }